<template>
  <div class="tips-content">
    <div :class="['message', messageType]">
      {{ message }}
    </div>
  </div>
</template>

<script setup lang="ts">
defineProps({
  messageType: String,
  message: String
})
</script>

<style lang="scss" scoped>
.tips-content {
  .message {
    margin-top: 25px;
    padding: 10px;
    border-radius: 4px;
    background-color: $color-2;
    border: 1px solid #fef3f2;
  }
  .success {
    color: #52c41a;
  }
  .error {
    color: #f5222d;
  }
  .info {
    color: #1890ff;
  }
}
</style>
